/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "产品绑定",TableName = "MES_ProductBind",DBServer = "ServiceDbContext")]
    public partial class MES_ProductBind:ServiceEntity
    {
        /// <summary>
       ///绑定ID
       /// </summary>
       [Key]
       [Display(Name ="绑定ID")]
       [MaxLength(36)]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid ID { get; set; }

       /// <summary>
       ///序列号
       /// </summary>
       [Display(Name ="序列号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string SerialNumber { get; set; }

       /// <summary>
       ///订货号
       /// </summary>
       [Display(Name ="订货号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string OrderCode { get; set; }

       /// <summary>
       ///工位名称
       /// </summary>
       [Display(Name ="工位名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string OPName { get; set; }

       /// <summary>
       ///产品机型
       /// </summary>
       [Display(Name ="产品机型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ProductType { get; set; }

       /// <summary>
       ///PLC程序号
       /// </summary>
       [Display(Name ="PLC程序号")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ProgramNumber { get; set; }

       /// <summary>
       ///托盘号
       /// </summary>
       [Display(Name ="托盘号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Pallet { get; set; }

       /// <summary>
       ///零件号
       /// </summary>
       [Display(Name ="零件号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Barcode { get; set; }

       /// <summary>
       ///采集类型
       /// </summary>
       [Display(Name ="采集类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string CollectionType { get; set; }

       /// <summary>
       ///错漏扫视图
       /// </summary>
       [Display(Name ="错漏扫视图")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string isInclude { get; set; }

       /// <summary>
       ///是否关重件
       /// </summary>
       [Display(Name ="是否关重件")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string keyFlag { get; set; }

       /// <summary>
       ///生产线ID
       /// </summary>
       [Display(Name ="生产线ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? lineId { get; set; }

       /// <summary>
       ///物料批次
       /// </summary>
       [Display(Name ="物料批次")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MaterialBatch { get; set; }

       /// <summary>
       ///物料件号
       /// </summary>
       [Display(Name ="物料件号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MaterialCode { get; set; }

       /// <summary>
       ///扫描模式
       /// </summary>
       [Display(Name ="扫描模式")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ScanMode { get; set; }

       /// <summary>
       ///采集数量
       /// </summary>
       [Display(Name ="采集数量")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ScanNumber { get; set; }

       /// <summary>
       ///供应商编号
       /// </summary>
       [Display(Name ="供应商编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string SupplierCode { get; set; }

       /// <summary>
       ///描述
       /// </summary>
       [Display(Name ="描述")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Description { get; set; }

       /// <summary>
       ///创建人ID
       /// </summary>
       [Display(Name ="创建人ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? CreateID { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///修改人ID
       /// </summary>
       [Display(Name ="修改人ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ModifyID { get; set; }

       
    }
}